package com.basic.business.order.controller;


import java.util.List;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.basic.common.annotation.Log;
import com.basic.common.core.controller.BaseController;
import com.basic.common.core.domain.AjaxResult;
import com.basic.common.enums.BusinessType;
import com.basic.business.order.domain.TOrdersCustomerLogs;
import com.basic.business.order.service.ITOrdersCustomerLogsService;
import com.basic.common.core.page.TableDataInfo;

/**
 * 业务-订单客服整理日志Controller
 * 
 * @author zhaoxy_jn@163.com
 */
@RestController
@RequestMapping("/business/customerLogs")
public class TOrdersCustomerLogsController extends BaseController
{
    @Resource
    private ITOrdersCustomerLogsService tOrdersCustomerLogsService;

    /**
     * 查询业务-订单客服整理日志列表
     */
    @GetMapping("/list")
    public TableDataInfo list(TOrdersCustomerLogs tOrdersCustomerLogs)
    {
        startPage();
        List<TOrdersCustomerLogs> list = tOrdersCustomerLogsService.getList(tOrdersCustomerLogs);
        return getDataTable(list);
    }

    /**
     * 新增业务-订单客服整理日志
     */
    @Log(title = "业务-订单客服整理日志", businessType = BusinessType.INSERT)
    @PostMapping
    public AjaxResult add(@RequestBody TOrdersCustomerLogs tOrdersCustomerLogs)
    {
        return toAjax(tOrdersCustomerLogsService.insert(tOrdersCustomerLogs));
    }

}
